﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XomSample
{
    /// <summary>
    /// Catalog Xml Object Interface
    /// </summary>
    public interface ICatalog
    {
        /// <summary>
        /// List of all Books
        /// </summary>
        IList<IBook> Books { get; set; } 
    }

    /// <summary>
    /// Book Xml Object Interface
    /// </summary>
    public interface IBook
    {
        /// <summary>
        /// ID
        /// </summary>
        string Id { get; set; }

        /// <summary>
        /// Author
        /// </summary>
        string Author { get; set; }

        /// <summary>
        /// Title
        /// </summary>
        string Title { get; set; }

        /// <summary>
        /// Genre
        /// </summary>
        BookGenre Genre { get; set; }

        /// <summary>
        /// Price
        /// </summary>
        double Price { get; set; }

        /// <summary>
        /// Publish Date
        /// </summary>
        string PublishDate { get; set; }

        /// <summary>
        /// Description
        /// </summary>
        string Description { get; set; }
    }

    public enum BookGenre
    {
        Computer,
        ScienceFiction,
        Horror,
        Romance,
        Fantasy
    }
}
